package uf.tax.laws.spider.sd;

import uf.tax.laws.spider.HttpDAO;

/**
 * 获取法律法规页面内容
 * 
 * @author sunny
 *
 */
public class GetLawItem {
	private HttpDAO http;

	public GetLawItem(HttpDAO http) {
		this.http = http;
	}

	public String getById(String id) {
		return http.get(String.format(
				"http://www.taxad.cn/news/detail/%s.html", id));
	}

	public String get(String url) {
		return http.get(url);
	}
}
